<template>
  <header>
    <div class="header-return" @click="toHome">
      <span class="iconfont iconzuojiantou"></span>
    </div>
    <div class="city-title">
      城市选择
    </div>
  </header>
</template>
<script>
export default {
  methods: {
    toHome () {
      // this.$router.push('/')
      // this.$router.push({path: '/'})
      this.$router.push({name: 'Home'})
    }
  }
}
</script>

<style scoped lang="stylus">
@import "~css/common.styl"
header
  width: 100%
  line-height: .88rem
  background-color: $bgColor
  font-size: .28rem
  color: #fff
  position: relative
  .header-return
    padding: 0 .2rem
    width: .2rem
    text-align: center
    font-weight: bold
    position: absolute
  .city-title
    text-align: center
    font-size: .32rem
</style>
